package com.dwxt.parabolic.controller;

import com.dwxt.common.base.BaseResult;
import com.dwxt.parabolic.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/parabolic/menu")
@RestController
public class MenuController {
    @Autowired
    private MenuService menuService;

    /**
     * 层级返回用户有权限的菜单
     */
    @RequestMapping("/list")
    public BaseResult getMenuList() {
        return menuService.getMenuList();
    }
}
